package com.leoblog.test.dao;

import com.leoblog.dao.impl.TestDao;
import com.leoblog.domain.Test;
import com.leoblog.test.base.AbstractUTestBaseSpringDaoTestCase;

public class UTestBaseDao extends AbstractUTestBaseSpringDaoTestCase {
	
	private TestDao testDao;

	public void setTestDao(TestDao testDao) {
		this.testDao = testDao;
	}

	public void testHibernateEnv()
	{		
		Test testDOM = new Test();
		testDOM.setId("1");		
		testDao.save(testDOM);
		
		Test resultDOM = testDao.get("1");
		
		assertEquals(testDOM.getId(), resultDOM.getId());
	}
}
